'''
Helper functions for hosts.
'''

def program_files_x86(host):
    '''
    Gets the Program Files (x86) path for the given nt host.
    '''
    if host.getenv('ProgramFiles(x86)'):
        return host.getenv('ProgramFiles(x86)')
    else:
        return host.getenv('ProgramFiles')
